// place your custom styles here
@use "@sass-palette/hope-config";
@import "./custom.scss";
@font-face {
  font-family: "PRshouxie";
  src: url("/assets/font/002.woff2") format("woff2"),
    url("/assets/font/001.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ZWZT";
  src: url("/assets/font/003.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.theme-container .fullscreen h1 {
  font-size: 2.8rem;
  font-family: "ZWZT";
}

.hitokoto-text span {
  font-family: "ZWZT";
}
.hitokoto-author {
  font-family: "PRshouxie";
}

.vp-blog-hero.fullscreen {
  z-index: 2;
}
.blog-page-wrapper {
  z-index: 2;
}

.theme-container .vp-sidebar {
  z-index: 4;
  transition: 0.3s;
  top: var(--navbar-height);
  @media (min-width: hope-config.$pad) {
    z-index: 4;
    background-color: transparent;
  }
}

// .hide-navbar {
//   .sidebar {
//     top: 0;
//   }
//   .toggle-sidebar-wrapper {
//     top: 0;
//   }
// }
[data-theme="light"] .theme-container .vp-sidebar {
  @media (max-width: hope-config.$tablet) {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(150%) blur(0.75rem);
  }
}
[data-theme="dark"] .theme-container .vp-sidebar {
  @media (max-width: hope-config.$tablet) {
    background-color: rgba(29, 32, 37, 0.8);
    backdrop-filter: saturate(150%) blur(0.75rem);
  }
}

[data-theme="light"] #main-content.vp-page {
  background-color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] #main-content.vp-page {
  background-color: #1d2025cc;
}
#main-content.vp-page {
  backdrop-filter: saturate(150%) blur(0.75rem);
  z-index: 2;
}
#main-content.vp-project-home {
  z-index: 2;
  backdrop-filter: saturate(150%) blur(0.5rem);
}
.vp-page.not-found {
  max-width: none;
  background-color: transparent;
}

.vp-pagination .vp-pagination-number div.active {
  background-color: var(--theme-color) !important;
}

[data-theme="light"] .vp-article-wrapper .vp-article-item,
[data-theme="light"] .vp-page .vp-blogger-info,
[data-theme="light"] .vp-page .vp-blog-infos,
[data-theme="light"] .vp-pagination .vp-pagination-nav .vp-pagination-button,
[data-theme="light"] .vp-pagination .vp-pagination-nav input,
[data-theme="light"] .vp-pagination .vp-pagination-number div,
[data-theme="light"] .wl-panel,
[data-theme="light"] .timeline-wrapper,
[data-theme="light"] .vp-project-home,
[data-theme="light"] .back-to-top [data-theme="light"] .page-bg {
  background-color: #ffffffb3;
}

[data-theme="dark"] .vp-article-wrapper .vp-article-item,
[data-theme="dark"] .vp-page .vp-blogger-info,
[data-theme="dark"] .vp-page .vp-blog-infos,
[data-theme="dark"] .vp-pagination .vp-pagination-nav .vp-pagination-button,
[data-theme="dark"] .vp-pagination .vp-pagination-nav input,
[data-theme="dark"] .vp-pagination .vp-pagination-number div,
[data-theme="dark"] .wl-panel,
[data-theme="dark"] .timeline-wrapper,
[data-theme="dark"] .vp-project-home,
[data-theme="dark"] .back-to-top [data-theme="dark"] .page-bg {
  background-color: #1d2025b3;
}
.vp-article-wrapper .vp-article-item,
.vp-page .vp-blogger-info,
.vp-page .vp-blog-infos,
.vp-pagination .vp-pagination-number div,
.vp-pagination .vp-pagination-nav .vp-pagination-button,
.vp-pagination .vp-pagination-nav input,
.back-to-top {
  -webkit-backdrop-filter: saturate(150%) blur(0.75rem);
  backdrop-filter: saturate(150%) blur(0.75rem);
}

[data-theme="light"] .vp-blog-hero .vp-blog-mask:after {
  background: #000;
  opacity: 0.2 !important;
}
[data-theme="dark"] .vp-blog-hero .vp-blog-mask:after {
  background: #000;
  opacity: 0.5 !important;
}

// 时间轴
.timeline-wrapper {
  box-shadow: 0 1px 3px 1px var(--card-shadow);
  backdrop-filter: saturate(150%) blur(0.75rem);
  --dot-bar-color: #ebf6f6;
  .timeline-content::after {
    width: 3px;
  }
}

// features
.vp-features {
  justify-content: flex-start;
}

// 看板娘
[data-theme="light"] #oml-tips {
  background-color: var(--theme-color-live2d) !important;
  border: 1px solid #fff !important;
}
[data-theme="dark"] #oml-tips {
  background-color: var(--theme-color-live2d-dark) !important;
  border: 1px solid #fff !important;
}

.aplayer.aplayer-fixed {
  z-index: 9998 !important;
}
// 适配移动端
table {
  table-layout: fixed !important;
  width: 100%;
  display: table;
}
hr {
  margin-left: 0.375em;
  margin-right: 0.375em;
  height: 1px;
  border: none;
  background: linear-gradient(to right, #7873f5 0%, #97d9e1 33%, #ec77ab 100%);
}

// 代码块样式
.theme-hope-content > div[class*="language-"] {
  @media (max-width: hope-config.$tablet) {
    margin: 0.875rem -1.5rem;
    border-radius: 6px;
  }
}
div[class*="language-"].line-numbers-mode:after {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 12px;
  content: "";
  background: #fc625d;
  box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
}
div[class*="language-"]:after {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 12px;
  content: "";
  background: #fc625d;
  box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
}
div[class*="language-"].line-numbers-mode .line-numbers {
  background-color: var(--code-bg-color) !important;
  width: 2.4rem;
  padding: 0.6rem 0;
  margin-top: 34px;
  margin-bottom: 10px;
}
div[class*="language-"] {
  background-color: var(--code-bg-color) !important;
  padding-top: 33px;
  padding-bottom: 15px;
  margin: 20px 0;
}
div[class*="language-"]:before {
  content: attr(data-title);
  position: absolute;
  top: 0.55rem;
  left: 5rem;
  z-index: 3;
  color: var(--code-line-number-color);
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  font-family: system-ui;
}
div[class*="language-"]:hover:before {
  display: block !important;
}
div[class*="language-"].line-numbers-mode pre code {
  padding: 0.6rem 1rem;
}
div[class*="language-"]:not([class*="line-numbers-mode"]) pre code {
  padding: 0 1rem;
}
div[class*="language-"].line-numbers-mode pre {
  margin: 0;
  margin-left: 2.4rem;
  border-left: 2px solid var(--code-highlight-bg-color);
  border-radius: 0px;
}

tr:nth-child(odd) {
  background: transparent;
}

.vp-navbar .vp-dropdown-title .arrow {
  vertical-align: sub;
}

.vp-sidebar-links .vp-sidebar-link {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
